


open class MOSDK:NSObject{
    required public override init() {
        super.init()
    }
    open func begin() {
        
    }
}
public struct SDKConfig {


    
    public static func build(){

        let sdks = [
            "MOSDK0001",
            "MOSDK0002",
        ]
        
        for k in sdks {
            if let a =  NSClassFromString("mosdks.\(k)") as? MOSDK.Type{
                let c = a.init()
                
                c.begin()
            }
        }
//        print(MoShare.default.realizations)
    }
    
    
    
}

extension SDKConfig{
    public struct WX{
        public static var universalLink = "https://help.wechat.com/sdksample/"
        
        public static var appID = "wxf8456ee79d84c393" //wxcf3ffbb62fe99c061 //wxf8456ee79d84c3931
        {
            didSet{
//                MEShareCenter.default().wx_APP_ID = WX.appID
            }
        }
        public static var secret = "" //a3c35bc147f90c6fc10e0aa5f76e06f46 //a4484e3f6a4fe24c476af705412486d99

    }
}

extension UIImage{
    public convenience init?(sdks_named:String) {
        let bundle = Bundle(for: MOSDK.self)
        self.init(named: sdks_named, in: bundle, compatibleWith: nil)
    }
}
